import request from '@/utils/request'
import { praseStrEmpty } from '@/utils/common'

// 查询用户列表
export function listApplication(query) {
  return request({
    url: '/system/application/list',
    method: 'get',
    params: query
  })
}

// 新增用户
export function addApplication(data) {
  return request({
    url: '/system/application',
    method: 'post',
    data: data
  })
}

// 修改用户
export function updateApplication(data) {
  return request({
    url: '/system/application',
    method: 'put',
    data: data
  })
}

// 删除用户
export function delApplication(userId) {
  return request({
    url: '/system/application/' + userId,
    method: 'delete'
  })
}
